package com.imut.hcdp.service;

import java.util.List;

import com.imut.hcdp.common.Rst;
import com.imut.hcdp.domain.HcdpOrder;
import com.imut.hcdp.domain.OrderParam;


public interface IHcdpOrderService
{

    public HcdpOrder selectHcdpOrderById(Long id);


    public List<HcdpOrder> selectHcdpOrderList(HcdpOrder hcdpOrder);


    public int insertHcdpOrder(HcdpOrder hcdpOrder);


    public int updateHcdpOrder(HcdpOrder hcdpOrder);


    public int deleteHcdpOrderByIds(Long[] ids);


    public int deleteHcdpOrderById(Long id);

    /**
     * 下单接口
     * @param orderParam
     * @return
     */
    String order(OrderParam orderParam,String orderType);

    /**
     * 退款
     * @param orderId
     * @return
     */
    String refund(Long orderId);

    /**
     * 未支付取消订单
     * @param orderId
     * @return
     */
    String cancelOrder(Long orderId);

    /**
     * 改签
     * @param orderParam
     * @return
     */
    Rst changeVisa(OrderParam orderParam);

}
